home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / spchauto / data1.cab / Samples / Visual_C++ / SpellCheckerOCX / spellchecker1.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  2.2 KB  |  66 lines

  1. #if !defined(AFX_SPELLCHECKER1_H__E6049D82_3B6A_11D2_AA5F_008048E292F1__INCLUDED_)
  2. #define AFX_SPELLCHECKER1_H__E6049D82_3B6A_11D2_AA5F_008048E292F1__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CSpellChecker wrapper class
  14.  
  15. class CSpellChecker : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CSpellChecker)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x9e3c8247, 0xfb0c, 0x11d1, { 0xaa, 0x5e, 0x0, 0x80, 0x48, 0xe2, 0x92, 0xf1 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     BOOL GetDelphi();
  43.     void SetDelphi(BOOL);
  44.  
  45. // Operations
  46. public:
  47.     BOOL OpenDictionary(LPCTSTR pszMainDictFileName, LPCTSTR pszCustomDictFileName);
  48.     void CloseDictionary();
  49.     BOOL IsWordExist(LPCTSTR pszWord);
  50.     void AddToChangeAll(LPCTSTR pszFind, LPCTSTR pszReplace);
  51.     BOOL IsCharAlpha(short ch);
  52.     BOOL IsCharLower(short ch);
  53.     BOOL IsCharUpper(short ch);
  54.     CString GetReplacement(LPCTSTR pszWord);
  55.     CString GetSuggestion(LPCTSTR pszWord, short nSuggestionIndex);
  56.     void AddWord(LPCTSTR pszNewWord);
  57.     void AddToIgnoreAll(LPCTSTR pszWord);
  58.     CString GetLanguageName(LPCTSTR pszDictFileName);
  59.     void AboutBox();
  60. };
  61.  
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  64.  
  65. #endif // !defined(AFX_SPELLCHECKER1_H__E6049D82_3B6A_11D2_AA5F_008048E292F1__INCLUDED_)
  66.